package com.kfm.login.ex;

import com.kfm.login.util.Resp;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class MyExceptionAdvice {

    @ExceptionHandler(JwtException.class)
    public Resp jwtException(JwtException e){
        return Resp.error(e.getMessage());
    }
}
